package com.tandashi.springbootstudy01.study.map;

import java.util.LinkedHashMap;

public class LinkedHashMapTest {

    public static void main(String[] args) {
        LinkedHashMap<String,String> map = new LinkedHashMap();
        map.put("1","1次查看");
        map.put("2","2次查看");
        map.put("3","3次查看");

        map.forEach((key,value)-> System.out.println("key = "+key+", value = "+value));

        String s = map.get("1");

        map.forEach((key,value)-> System.out.println("key = "+key+", value = "+value));


    }

}
